/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86187
 * Date: 2022-04-19
 * Time: 18:38
 */

//Scanner scan = new Scanner(System.in);

import java.util.Arrays;
import java.util.Scanner;

public class TestDemo {

    public static void main(String[] args) {

        int[] arr = {1,2,6,7,5,98,31,45};

        System.out.println(Arrays.toString(arr));

        Arrays.sort(arr);
        for (int x:arr) {
            System.out.print(x+" ");
        }

    }
}
